fix graph creation 

several fixes to graph based object creation