added bin existence checks