updated file-path logic to be handled inline