         (column-no         (current-column-no))
 	(buffer (current-buffer)))       
     (erl-spawn
-      (erl-send-rpc node 'wrangler_distel 'fun_to_process (list current-file-name line-no column-no name erlang-refac-search-paths))
+      (erl-send-rpc node 'wrangler_distel 'fun_to_process (list current-file-name line-no column-no name erlang-refac-search-paths tab-width))
       (erl-receive (buffer node current-file-name line-no column-no name)
 	  ((['rex ['badrpc rsn]]
 	    (message "Refactoring failed: %S" rsn))

	(buffer (current-buffer)))
    (if (buffer-modified-p buffer) (message-box "Buffer has been changed")
	(erl-spawn
	  (erl-send-rpc node 'wrangler_code_inspector 'find_var_instances(list current-file-name line-no column-no erlang-refac-search-paths))
	  (erl-receive (buffer)
	      ((['rex ['badrpc rsn]]
		(message "Error: %S" rsn))

      (if changed (message-box (format "there are modified buffers: %s" changed))
	(erl-spawn
	  (erl-send-rpc node 'wrangler_distel 'register_pid
			(list current-file-name start-line-no start-col-no end-line-no (- end-col-no 1) name erlang-refac-search-paths tab-width))
	  (erl-receive (buffer node current-file-name start-line-no start-col-no end-line-no end-col-no name)
	      ((['rex ['badrpc rsn]]
		(message "Refactoring failed: %S" rsn))
