rearranging linenoise, this file should be split up soon