add exception handler to get_data