fixed race condition. added target commandline