added buffer size options to getopt