fix refractor stuff