not needed
fix assert statement
use proper syntax
refactor CWErrorTrap()