finish config & log