update plotting and logging