           echo -e "\n\nPlease do ./run again\n"
           exit 1;
       fi
-    }
-
-    function testendpoints () {
-
-      EP=("dev.koding.com:8090/" "dev.koding.com:8090/xhr" "dev.koding.com:8090/subscribe/info" "dev.koding.com:8090/kloud/kite" "dev.koding.com:8090/kontrol/kite" "dev.koding.com:8090/sourcemaps")
-
-      while [ 1==1 ];
-      do
-      for i in "${EP[@]}"
-        do
-
-           curl $i -s -f -o /dev/null || echo "DOWN $i" # | mail -s "Website is down" admin@thesite.com
-
-        done
-      sleep 1
-      done
-    }
-
-
-
-    function chaosmonkey () {
-
-      while [ 1==1 ]; do
-        for i in mongo redis postgres
-          do
-            echo stopping $i
-            docker stop $i
-            echo starting $i
-            docker start $i
-            sleep 10
-          done
-      done
-
-      echo now do "run services" again to make sure everything is back to normal..
     }
 
     function printconfig () {

      ./notification -c #{KONFIG.socialapi.configFilePath} -h
    }

    function sandbox_buildservices () {
      SANDBOX_SERVICES=54.165.122.100
      SANDBOX_WEB_1=54.165.177.88
      SANDBOX_WEB_2=54.84.179.170

      echo "cd /opt/koding; ./run buildservices" | ssh root@$SANDBOX_SERVICES @/bin/bash

      echo "sudo supervisorctl restart all"      | ssh ec2-user@$SANDBOX_WEB_1 /bin/bash
      echo "sudo supervisorctl restart all"      | ssh ec2-user@$SANDBOX_WEB_2 /bin/bash
    }

    if [[ "$1" == "killall" ]]; then

      kill_all

      migrateusers

    elif [ "$1" == "buildservices" ]; then
      check_service_dependencies

      if [ "$2" != "force" ]; then
