Cleanup in api_casy