fixes to make phone3.js run