sphinx and stats improvemetns