implements zip install
adds tests, fixes bug