errorcode namespace issue resolved