fixes to some strict mode errors