fixed tabs, added report of errors