changed the import name for main_loop