WIP
test and primative api