modified api template; made some fixes to csvrenderer