add graph support
replace placeholders in graph