some updates to controller and render. env override for settings