added error handling and increased timeout for get data