fix minor server's issues.
develop output error messages.