use anonymous functions for pimple stuff