fix map handling bug
lookup example works
metadata as method