bugfixes for driver-server

also moved scripts to /tools