error handling for first session