stupid bug. forgot to add / at the end of name of directory