fix to serve json