add enable_warngins and disable_warnings methods