default mainscript based on app name