better error message when missing collection_name