added parsecontrolmap function