can we pass self.attributes? or better, repo_format method or something?