Added withHooks/addHooks
Added prority startup and dfixed checkHex