passing app name as parameter