search in correct scope for traps