fix buncha bugs in new bic script