added threaded/flat feed modes