check for $key
sort prereqs and followups