added kludgy testing functions