minor bug fixes
merge conflict resolved