removed some deprecation warnings but still hangs