added a rifle hook for better sxiv integration