adding writing to pipes binaries and improving path management