use index -2 to get package name