[IMP] refactoring lesspkg