slightly working main file. stress is not working correctly