build and testing packages refactored to permit local testing (take two)