fixed api controller thing for cycles