added appName to app functions