set main entry point