refactor the webapp configuration