improving dialog code; will create subscriber soon