added a helper for dealing with services