trailingslashit fixes