some graph fixes, stuff i was too lazy to put in etc