added events: beforeServiceResolve and afterServiceResolve