impl: perform all operations on per file basis
fix: dir exists error handling