make process starting windows-compatible and fix parameter passing