Adding environment switch for 1.4 backend