added some new fxns, including a viz fxn