adding single file optimization