static files serving and query endpoint