move check of destination folder only once
fix try connection in http repository