change to array of chars, add wait for children to exit
wait for children to exit