added addSlash() around paths for profile