remove debug and split bundle build function