Upgrading to tez 0.5.1