pkgfilter storage + removed dead code + refactoring
Signed-off-by:jonathanlermitage <jonathan.lermitage@gmail.com>