updated again attempting to use service hooks