use pry for debugging
refactor apikey handling + coverage