moving some recent writing from ghost over.

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