fix environment formatting