added apis for writing to and reading from graphs
original apis keep writing to default graph
new version