first version of v2 which supports pimple >=2.1,<4