add output converter
add pack and unpack