add rake task and scope