some various cleanup

Signed-off-by: Alexander Skjolden <alex@plastboks.net>