external version of rake stats