update package path for conf
refactor code