added enroll constants and bad route handling improved