Shanahan struggling in new role with 49ers