works besides loading gui.