add download by regexp
add logging