another big batch of changes

Signed-off-by: Chris Jones <chris@jonezy.org>