allow specifying config. wait for network
Merge pull request #2 from ranjib/support_config

allow specifying config. wait for network