server package rewrite compiling