remove use of deprecated features in 1.8.0 and removed in 1.9.0