better error messages. Especially when the declare link is invalid.