better handling of package installation