fix s3 urls, move rake task.