fix readFolder bug, add weekeeSocket in frontend