add output to mainservlet