rough draft of merchant repo & tests done