replaced index_spec with app_spec