fix folder and realease connection bugs