first steps to buffered input