thread filtering by thread state - initial implementation