made get_available_space return a list rather than a string.