make sure lambda, anon scopes are caught