added util functions for testing
some more line additions