added checking for pubspec