working repo with singleton architecture