refactor create function parameters to (app, options)