fixed api. tests working. green.