implemented patch method to monkey patch an app object