Conversion attempt, still lots do to

this won't even compile as it is. just to keep track of progress