fix return type of get-all-refs