updated to exclude templates directory