updated rake script