modify code for dir core
modify some code; add file utility.py