add support for cloudfront
fix pathing