implementing git cloning, somewhat fixes #1