bad commit
fix error and lint
need to close off resource
doc