another tryout, but it's quite compliate...
rewrite server