add extra flags to remove warning