add in error interface