avoid usage of gFile, support of TObjString