add packaging hooks