added in some extra debugs