adding support for custom graph start/end