WIP: factoring out URLs in terminus