basic work for transitioning api layer away from app layer