add error definitions