modularize server