fix handler takesnap