small fixes
replace deprecated function calls