allowing configuration of timeout