templiting with php (not very satisfying)
mocking is ok for first call