some ruby scripts