edits to ruby script, updated defMaster