expanduser capabilities for IO