minor cleanup for ip lib