initial version supporting weights-map, but all weights will be zero until enum-to-string is implemented