got api somewhat working