added protection against buffers too big for atmega's328p ram. Worked on bootstrapper