adding automated alignment checking