improve error reporting
fix error reporting from make