some small random edits + add rake task to scheduler