refactor script that starts vnc servers