added parsing of placeholders & templates