making packages reflect current box
environment.extra added with replacements possible
improve the decision tree for whether it is a valid system