trim space
add error handling
0.0.2