need to fix check_and_load_modules later