updated to use secure-graph