started switching things to regular errors because they include a stack trace
fixed $ referecnes
added and test