removing some deprecation warnings, but still fails to compile. #614