use PkgVersion for automatic version generation
do less busylooping by selecting writes and exceptions
raise version