Euler rework

This is a WIP to have most euler test case work nice

do not accept PR now ;-)