migrated to kb_require/kb_define