add environment refresh event
eliminate unused enqueRefreshEvent function