ver 0.2 + multiple capture logic

tests pass, but code still needs some heavy refactoring