small optimizations
Merge branch 'master' of https://github.com/yupe/yupe