sort levels, remove debug features