support for multiple graphs at once