graph updates, fixed bugs