replaced extract.gura with new code