add REACTIVE mode; fixed false EOF