added ability to check availabilty, although availability list has holes problems