fix #6 and add nodeLoopOffset for specifying distance