add rake tasks attribute and loop