Another go at refactoring config and recompile app