remove many unused resources and code