use custom resolve