fixed directory compatiblity