displaying warnings and errors. without thread.