seperated the errors and warnings
upgraded the version for errors and warnings seperate