hub: add function: init

initialize all stuffs