add api key to model rather than use hash