added option to not allow warnings