added init functions to app class