move app instance create to master