added private networking and secret-file support

Issue #36 PR