improve trash support