added ar implementation for parity
add ar, fix output waiting