rename platform to env to support other properties on obj