added api access and finished the organization stuff