split commands properly