refactored stuff

Signed-off-by: Nicholas Jackson <nic@thatlondon.com>