rewrite emboxValue (doesn't fix everything yet)