simplify bsvgen