updated agenda: proper tail calls

this is actually important for mutually recursive functions, as well as
fixing the current problem with recursion