so many fixes...

Fixed component encapsulation! Fixed data races between inputs! Added
deps.