new version concept: add version class, fix sorting