add support for reading version