API partially implemented

non working version