added batch delete and proper disposing