some fixes from previous changes
Merge remote-tracking branch 'origin/master'