bug fixes
compile warning