added methods to datahandler and fixed issue with config parser