add function initKbs in shell