prepared for unit tests