added support for named graphs