fixed several bugs included while switching to graphml