rake task almost in final form, needs associations