move save routine below tx reply to avoid delays