add handler option for Server and restruct module dir