added idle_timeout option