readline: adding low-level wrappers