appropriately invert logic and also store jackpid (-T doesn't seem to do what I wanted)