merging files into one, some posix added