fix config.cloudwatch ref. bugs