use eprintf instead of printf to print error messages