small crypton refactor