- major updates to console script. included in pull request.