compile to ybc in proper order