few bugs fixed
Merge remote-tracking branch 'origin/master' into Ravisha