refractor source code