add checks to ensure bucket and views are available