fixed missing piece bug, program now exits upon completion
oops, commiting with bt.py