would be nice(r) if these were class members instead of constructor args.