added servicename attr and tests