loadContainer, hasIdentity fixes