I don't understand why you changed serial.load to this? serial.load takes care of processing env variables.