refine with thor