final_proj.pl add order directive checking