move util methods to helper
remove debug require