server script written in ruby