fix random static compiling bug
fix json syntax that closure aparently did not like