tested on fcgi server