fix display of errors in modules
allow query of packages during build
merge duplicate work
switch to merged utility function name