simplify prep_bnx.pl