new factory with packages support
Merge pull request #73 from glivron/master

New factory with packages support