modularize deployment