fixing brain fart in regards to api logic