unify build file for server/client side