adding better print handling inside list_datastore_info method