add autoflow for windows