move slot functions to slot manager.