improved configuring and logging