bugfix - need to pass environment details to response