better api for handlersForEnvironment