added support for the --production flag