connect when folder is closed