fixes
diff --git a/conf/config.js b/conf/config.js
index 9eed6f0..504dfb6 100755
--- a/conf/config.js
+++ b/conf/config.js
@@ -22,11 +22,11 @@
      * in nginx or apache for cross origin domain sharing to work (CORS).
      * Check install documentation on github
      */
-    {% if data in pillar.grafana.server.data.count == 1 %}
+    {% if (pillar.grafana.server.data|length) == 1 %}
 
     {% for data in pillar.grafana.server.data %}
     {%- if data.type == "graphite" %}
-    graphiteUrl: "http://"+{{ data.host }}+":{{ data.port }}",
+    graphiteUrl: "http://{{ data.host }}:{{ data.port }}",
     {%- endif %}
     {% endfor %}
 
@@ -38,7 +38,7 @@
      * Multiple graphite servers? Comment out graphiteUrl and replace with
      *
      *  datasources: {
-          
+
      *    data_center_us: { type: 'graphite',  url: 'http://<graphite_url>',  default: true },
      *    data_center_eu: { type: 'graphite',  url: 'http://<graphite_url>' }
      *  }
diff --git a/server.sls b/server.sls
old mode 100644
new mode 100755
index 5ac819c..50dfa40
--- a/server.sls
+++ b/server.sls
@@ -26,12 +26,22 @@
   - names: 
     - npm install
     - npm install -g grunt-cli
-    - grunt build
   - cwd: /srv/grafana/site
   - unless: test -e /srv/grafana/site/node_modules
   - require:
     - git: grafana_repository
 
+
+grafana_grun_build:
+  cmd.run:
+  - names: 
+    - grunt build --force
+  - cwd: /srv/grafana/site
+  - unless: test -e /srv/grafana/site/dist
+  - require:
+    - git: grafana_repository
+
+
 {% endif %}
 
 /srv/grafana/site/src/config.js: