add error messages for router and config lib