garbage collector for tmp files really fixed + refactor + selector cleanup behavior