move wordcut to lib