cgi: sanitize preset names
finish preset support