remove dependancy on size of BUFSIZ