handle errors
test possible errors #2