minor fixes, but everything was working on ipad before this one