adding spark env as a template file