write to source file directory