slim: various misc fixes.