Add ability to auto-capture har files

TE-449 
why `pop()` (which modifies the dict) and not `get()`?