fixing bug in packages, fix --unsafe, add possibility to negate commands with not, currently only implemented for checks, but not waits