rename error variable to err in fs callbacks