moving alignment utils to a separate module