added multipage download support