better handling of unavailable slots (fixed #33)