quote works, lambda works but references to vars are not removed in a safe way