src: some refractor