add config option to layout injection