removed slashes on the end of path variables