fixing code to work with new conveyor version