cgi-ify error and stuff