motd script improved