groundwork done

todo: check whether serializing enums really is the best way to go about
it.