remove assert in favor of warning