control flow library, from mixu's node book