improved ugreen support and cgi integration