try commenting out api view and middleware