convert config map to slice