added compile hook