rearrange to allow CGI script to serve data as API