try to do content type more correctly instead of hard coding it into the cgi