change to init hook