add bundle check code