refactoring and cleanup, working "download all links" action
 * see TODOs