exported function to dogefetch.py