added support for specific mirror directory ???? not sure if complete