expose some methods for testing