initial bi framework

refine and refactored from fw22