add processing graph code