In this talk, Ignacy will discuss the armoury of models which allows us to think about the periods of cosmological acceleration, both in the very early universe (inflation), and today (dark energy). Usually, one models these using a scalar field (for example, quintessence or chaotic inflation); however, from the point of view of the quantum theory these models suffer from a problem very similar to that of the Higgs hierarchy problem because these scalar fields should be much heavier than would be required by observations. It will be discussed how an extension of scalar fields to non-canonical theories inspired by modifications of general relativity introduces a very new phenomenology (e.g., stable violation of the null energy condition, phantoms) which allows one to get away from some of the known problems and which introduces a new phenomenology.