small update of int to long in binary i/o