add worker count to prevent segfaults