added optional placeholders for uri if placeholder is last