add reflux and minor changes in old wrapper