added chain filtering