switched to ruby for scripting