first attempt to support instances that are in multiple layers.  this feels a little kludgey, but don't want to restructure the whole deal just right now