don't access zstr outside of lock