renamed meta_main to main, fixed some errors