(WIP) add more low-level segment stuff