adding external handler