working towards better error documentation