parallel hadding script