migrate slot related functions to slot manager.