added parameter to say if scanner should be configured