reorder checks so that initialization process can actually run