better support for sending file using file path