modified ::params to be able to modify datadir and confdir