simplify crmtask code