added support for '~' in DATA_FILE