finally made it faster than linux grep, life is hard...