added type form to path replacement