refactored levels configuration