add warnings.

possibly should have rebased, but nm