added support for passing warnings to user
surfacing enough context now to make these tests pass