stripping api from views