changed $baseDirectory