divide builder into iibuilder and pibuilder
finished pibuider.py but not be tested