removing empty handlers and meta