use process.env.NODE_ENV to enable Object.freeze for non-prod environments