move entry point to top of file