added support for $inc (does not actually work with transactions)