add an create app function