R&D work for a GEM-based high resolution TPC for the ILC