trying to fix flex-json thingy