changed PrepLineObjects to queue instead of global