added support for write log for version