have runbrick.py use refactored functions too