API: added hierarchal filtering to sequence download, some internal fixing