added replace operation, started work on sync with replace