updates to service.rb