refer to core.py and helpers.py from bottom of examples section