got code working by passing the file path as an option