#2 recreated problem
#2 added handling of mirrors
Merge pull request #10 from krzyk/2

#10: pull request #2 using mirrors