fixed small error in example
 revamped the way mrepo main works