added velocity_frame parameter and made got_to_root_menu() more reliable