allow caller to customize clsdict