use resolve module instead of generic try catch