better modularized chelmbigstock.py