finally solved the timeout problem