more pam imll, fix bug in switch & timers