bug fixes
Merge remote-tracking branch 'upstream/dev' into dev