move crosstab to dataset some code cleanups