Add schema for version ordering
Add backend chnages for more flexible versions