set up data structure for services resource