initial framework for returning data