random api addition i needed for my tests.