improving pkg installation.
new vars.
cleanup.