added Useful class and sampel config file
bug fix