added fetching of available table spaces