move service_name var definition to top of recipe