refactored production check into variable. renamed queue to batcher