switching seems to be working. need to test with multiple processes
added wait and exit structure, exit tests not working - zombie process still getting ticks