add create hook
adapt to comodl changes