took some more stuff out of the result_t variant
more variant work
bugfix