return status code when usign as cgi
add memo