resolve most linux errors, but not all