read datapath from config, resolves #9

read datapath from config, resolves #9