add reset_user, modify path related functions