little fix for template option
improvement for remove file not needed