small changes to error messaging