fixed some trailing slash issues