moved tripwire to own module and refactor