fixed to value
cleanup and fix json save