adding environments and development reloading for templates