added as_dict to bulk