posix specific split to separate file