first client side implementation of new api

UNTESTED AND NOT BOUND TO ANY MODULE YET.