updates file i/o units; prettifies code
synchronizes gpu loading