added options to get warnings, as suggested by xclerc