added check_current_disk_space function