slightly fixed the dir call