correct indentation; attach address, uri, check for duplicate uri, create store