fixed annoying deprecation warnings