add local reference and remote ref