grextras: completed but untested alignment logic