@cpcloud this function is never used in any tests, is it necessary?