extract loop (weird rave env destroy bug fixed by never destroying)