fix getting default value for option.basePath
fix error handling
0.0.4