changed initializer to take app name