make sure environ is serializable