First hack

at something somewhat usable