fix bug. and change directory from ~/di/ to ~/.di/