add scripts to support emacsclient