fixed api to not suck