add style support for deployment
several bug fixes