using ui_fatal_error to avoid segfaults