added dynamic timeout calculation
added script to fetch last server-output every secound