added error handling and retry button; v1.0.3