remove passthrough kwargs before checking