debugged oslom+infomap functions