handle compile errors