improved logging at pl_switch command