Fix static file serving

static files were not properly served because of the bizarre API