added option attribute to app.create and app.update