change over to using cloudflare gem, refactor to use it instead of going direct