improve prompt options error handling