modules refactor

undocumented wip stdin example