bug 7284: fix package build problem, move BEGIN into new