set autopen on/off