refactoring create-application / resources