copy from vitess for making depends less