added errors interface