seperate api from views (bug api-statsd)