upgrade to latest main-loop