split to common, servlet and simple