fixed several config related bugs. now it is able to run on thinkpad ubuntu