threads fixed, working on function to start processes