fix cdn initializer to return file object