Workerpool static

allowed the main in worker pool to be run by making it static.