atg. compile all at end.