misc fixes
Merge branch 'master' into beta