updated analab and bld script