updated some code to reference the new entity
loads the entity into global namespace if is a keychain.