suport to serve static files and fix for invalid json params