sort elements to read in proper order
added some missing requires
version bump