refactor recess config