- some corrections on fileop replacement