wip, but slowly taking a sane approach to analysing