add GetBar & WriteBar