#5
correct the fail on error value
#5
removed unnecessary import