reworked partitioner call (builds but segfaults)
fixed chunk calculating being nonsense