fix appname and entry point