add graph spec, possibly needs a bit more