add loc api - draft