playing with js dsl
built meta else if
tidy up