better error message from chain buider