add support for committing