add design patten
add server config part