auto extend options and filter while compileTemplate