added srank, made bot more resilient, other fixes