modified root path
fixed some bug