correct action saving into the logfile