BUG: fixing setup script for packages