added ident command and beefed up error reporting