update version & improve error parsing