moved serve/servlet to main