move timeout to config