implement the local server. can be enable with -L