splitted main, renamed files (should still work)