improved resource disposal