add compile and copy events