check some errors