automatic bin detection not quite right