hack for #18
some work to consolidate build args
consolidate context creation for stdin/http
stdin tests for main