tweaking the callbacks system to avoid race conditions in telemachus