added replace and objectpath options; towards 0.0.2.