logic in send certificate rake file