required changes to support chmap