finally unified the windows/linux implementacao