merge split lines
replace getResources() calls by a variable
add notice when no destination is set.