refactoring - add api reponses