[updated] also takes propert path on the command line