[ticket/4] check for most specific values first