some cleanup and conversion functions

also: note that some instance arguments don't quite kick in as I'd like