extend controller for a few env features.