we use rails 3, so it has to be script