first version for pimple >2.1 < 4