[fix] check for errors