added auto compile option