fixed env.psgi to prevent serialization failures