upgrade to 3.0 - replace deprecated function calls