update to not crash on error