transfer BNI to rails