Upgrade fabric script to use the latest fabric api