added trema 's handlers.