server controller ruby scripts