libcap formatting