halfway implemented folder sync