alll this logic should be stored on scm instead of the repo