add handler snippet