checks for system errors