check_for_warnings and force_write added