move line_prefixed into core.protocols