make sure output is a row vector in readnamdbin()