accept custom readFile and isFile callback in async mode