some changes in directories.py