handle threshold_res higher than first resolution
restrict tox dependencies