refactor detect
add tmp to .gitignore
remove tmp file
add negate matcher