added logging and libconfig