added all api calls, need to fix premap