use buffers in read_input module