hacked queue manager from last year, with updated shell script generator