wip: repository: add ref property