isolated functions to speed up test environment