basic availability checking added