split commands to writer