expose the hotswap function for easier maintainability