add logging
fix exact matches for language and space restrictions