implemented host-side loopcheck functionality, next commit will be in-kernel