added more version generating code