add trailingSlash option on update