query graph editor stuff, not working yet