refactor application config