free space checks. few fixes.