trying to separate data service from application