added downloading support