extact util class
fix #3