improved logging via pickle