grabber script rewritten