better error reporting
add type functions
0.0.2