bring in the self is module capability

if there is a metadata.json the repo will be used as a module