used multiprocess to spawn off processes