adapted to use the new error manager + added new methods