object lookup in getFileLocation should respect typename argument