got the rudiments working, though it's not pretty