renamed port flag and added -w option for windows