add is sync param to methods for file