improve command sending
add support for bulk replies