added passive mode