updated to use the 0.9 adapter api