push warning until after error check