updates to improve stability of log plotting