WIP: sync brainseg dir with current master
WIP: Trash: comment out the registration printing
WIP: fix the segfault