better logging, fixed buildgraph