refactored a lot of code out of the original build command class into core wam class