few tweaks to leaf