add error manager