prepare to return value from service (not tested)