added some utils to help with testing