added compile functionality and deflink directive